OBJECT Report 50000 Empty Report { OBJECT-PROPERTIES { Modified=Yes; Date=11/15/22; Time=8:23:04 AM; Version List=FORNAV3.1.0.1462/2350; } PROPERTIES { OnInitReport=BEGIN {;ReportForNav};ReportsForNavInit(); END; OnPreReport=BEGIN ;ReportForNav.OpenDesigner:=ReportForNavOpenDesigner;IF NOT ReportForNav.Pre THEN CurrReport.QUIT; END; OnPostReport=BEGIN ;ReportForNav.Post; END; } DATASET { } REQUESTPAGE { PROPERTIES { } CONTROLS { { 1900000001;0;Container; ContainerType=ContentArea } { 1900000002;1;Group ; CaptionML=[CSY=Mo§nosti; DAN=Indstillinger; DEU=Optionen; ENU=Options; FIN=Vaihtoehdot; ISL=Valkostir; NLD=Opties; NOR=Alternativer; SVE=Alternativ; ITS=Opzioni; NLB=Opties] } { 5000;2 ;Field ; Name=ForNavOpenDesigner; CaptionML=ENU=Open Designer; SourceExpr=ReportForNavOpenDesigner; Visible=ReportForNavAllowDesign } } } LABELS { } CODE { VAR ReportForNav@5000 : DotNet "'ForNav.Reports.3.1.0.1462, Version=3.1.0.1462, Culture=neutral, PublicKeyToken=5284c1af2984feb0'.ForNav.Report" WITHEVENTS; ReportForNavClient@5003 : DotNet "'ForNav.Reports.3.1.0.1462, Version=3.1.0.1462, Culture=neutral, PublicKeyToken=5284c1af2984feb0'.ForNav.Report" RUNONCLIENT; ReportForNavDialog@5001: Dialog; ReportForNavOpenDesigner@5002 : Boolean; ReportForNavAllowDesign@5004 : Boolean INDATASET; LOCAL PROCEDURE ReportsForNavInit@5005(); VAR fn : Text; BEGIN fn := APPLICATIONPATH() + 'Add-ins\ReportsForNAV_3_1_0_1462\ForNav.Reports.3.1.0.1462.dll'; IF NOT FILE.EXISTS(APPLICATIONPATH + 'Add-ins\ReportsForNAV_3_1_0_1462\ForNav.Reports.3.1.0.1462.dll') THEN ERROR('Please install the ForNAV DLL version 3.1.0.1462 in your service tier Add-ins folder under the file name "%1"', fn); ReportForNav := ReportForNav.Report(CurrReport.OBJECTID(), CurrReport.LANGUAGE() ,SERIALNUMBER(), USERID(), COMPANYNAME()); ReportForNav.Init(); END; EVENT ReportForNav@5000::OnInit@5002(); VAR ReportLayoutSelection@1000 : Record 9651; CustomReportLayout@1001 : Record 9650; CustomLayoutID@1002 : Variant; InStream@1004 : InStream; EmptyLayout@1003 : Text; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. EmptyLayout := FORMAT(ReportLayoutSelection."6"); CustomLayoutID := ReportLayoutSelection."6"; ReportForNav.OData := GETURL(CLIENTTYPE::OData, COMPANYNAME, OBJECTTYPE::Page, 7702); IF FORMAT(ReportLayoutSelection.GetTempLayoutSelected) <> EmptyLayout THEN CustomLayoutID := ReportLayoutSelection.GetTempLayoutSelected ELSE IF ReportLayoutSelection.HasCustomLayout(ReportForNav.ReportID) = 1 THEN CustomLayoutID := ReportLayoutSelection."6"; IF (FORMAT(CustomLayoutID) <> EmptyLayout) AND CustomReportLayout.GET(CustomLayoutID) THEN BEGIN CustomReportLayout.TESTFIELD(Type,CustomReportLayout.Type::RDLC); CustomReportLayout.CALCFIELDS(Layout); CustomReportLayout.Layout.CREATEINSTREAM(InStream,TEXTENCODING::UTF8); ReportForNav.IsCustomLayout := TRUE; END ELSE REPORT.RDLCLAYOUT(ReportForNav.ReportID,InStream); ReportForNav.LoadRdlc(InStream); IF ReportForNav.IsWindowsClient THEN BEGIN ReportForNav.CheckClientAddIn(); ReportForNavClient := ReportForNavClient.Report(ReportForNav.Definition); ReportForNavAllowDesign := ReportForNavClient.HasDesigner AND NOT ReportForNav.ParameterMode; END; END; EVENT ReportForNav@5000::OnSave@5010(Base64Layout@1000 : Text); VAR CustomReportLayout@1002 : Record 9650; ReportLayoutSelection@1003 : Record 9651; LayoutId@1004 : Variant; TempBlob@1007 : Record 99008535; OutStream@1006 : OutStream; Bstr@1005 : BigText; EmptyLayout@1001 : Text; ReportID@1008 : Integer; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. EmptyLayout := FORMAT(ReportLayoutSelection."6"); LayoutId := ReportLayoutSelection."6"; EVALUATE(ReportID, FORMAT(ReportForNav.ReportID)); IF ReportLayoutSelection.HasCustomLayout(ReportID) = 1 THEN BEGIN IF FORMAT(ReportLayoutSelection.GetTempLayoutSelected) <> EmptyLayout THEN BEGIN LayoutId := ReportLayoutSelection.GetTempLayoutSelected; END ELSE BEGIN IF ReportLayoutSelection.GET(ReportID, COMPANYNAME) THEN BEGIN LayoutId := ReportLayoutSelection."6"; END; END; END; IF FORMAT(LayoutId) <> EmptyLayout THEN BEGIN TempBlob.Blob.CREATEOUTSTREAM(OutStream); Bstr.ADDTEXT(Base64Layout); Bstr.WRITE(OutStream); CustomReportLayout.GET(LayoutId); CustomReportLayout.ImportLayoutBlob(TempBlob, 'RDL'); END; END; EVENT ReportForNav@5000::OnParameters@5008(Parameters@1000 : Text); BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. ReportForNav.Parameters := REPORT.RUNREQUESTPAGE(ReportForNav.ReportID, Parameters); END; EVENT ReportForNav@5000::OnPreview@5009(Parameters@1000 : Text;FileName@1005 : Text); VAR PdfFile@1002 : File; InStream@1003 : InStream; OutStream@1004 : OutStream; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. COMMIT; PdfFile.CREATETEMPFILE; PdfFile.CREATEOUTSTREAM(OutStream); REPORT.SAVEAS(ReportForNav.ReportID, Parameters, REPORTFORMAT::Pdf, OutStream); PdfFile.CREATEINSTREAM(InStream); ReportForNavClient.ShowDesigner; IF ReportForNav.IsValidPdf(PdfFile.NAME) THEN DOWNLOADFROMSTREAM(InStream, '', '', '', FileName); PdfFile.CLOSE; END; EVENT ReportForNav@5000::OnPreSection@5012(DataItemId : Text;SectionId : Text); BEGIN END; EVENT ReportForNav@5000::OnPostSection@5013(DataItemId : Text;SectionId : Text); BEGIN END; EVENT ReportForNav@5000::OnSelectPrinter@5006(); BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. ReportForNav.PrinterSettings.PageSettings := ReportForNavClient.SelectPrinter(ReportForNav.PrinterSettings.PrinterName,ReportForNav.PrinterSettings.ShowPrinterDialog,ReportForNav.PrinterSettings.PageSettings); END; EVENT ReportForNav@5000::OnPrint@5005(InStream : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.Stream"); VAR ClientFileName : Text[255]; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. DOWNLOADFROMSTREAM(InStream, '', '', '', ClientFileName); ReportForNavClient.Print(ClientFileName); END; EVENT ReportForNav@5000::OnDesign@5007(Data@1001 : Text); BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. ReportForNavClient.Data := Data; WHILE ReportForNavClient.DesignReport DO BEGIN ReportForNav.HandleRequest(ReportForNavClient.GetRequest()); SLEEP(100); END; END; EVENT ReportForNav@5000::OnView@5003(ClientFileName : Text; Parameters : Text; ServerFileName : Text); VAR ServerFile : File; ServerInStream : InStream; Filter : Text; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. ServerFile.OPEN(ServerFileName); ServerFile.CREATEINSTREAM(ServerInStream); IF STRLEN(ClientFileName) >= 4 THEN IF LOWERCASE(COPYSTR(ClientFileName, STRLEN(ClientFileName)-3, 4)) = '.pdf' THEN Filter := 'PDF (*.pdf)|*.pdf'; IF STRLEN(ClientFileName) >= 4 THEN IF LOWERCASE(COPYSTR(ClientFileName, STRLEN(ClientFileName)-3, 4)) = '.doc' THEN Filter := 'Microsoft Word (*.doc)|*.doc'; IF STRLEN(ClientFileName) >= 5 THEN IF LOWERCASE(COPYSTR(ClientFileName, STRLEN(ClientFileName)-4, 5)) = '.xlsx' THEN Filter := 'Microsoft Excel (*.xlsx)|*.xlsx'; DOWNLOADFROMSTREAM(ServerInStream,'Export','',Filter,ClientFileName); END; EVENT ReportForNav@5000::OnMessage@5016(Operation : Text;Parameter : Text;ParameterNo : Integer); BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. CASE Operation OF 'Open' : ReportForNavDialog.OPEN(Parameter); 'Update' : ReportForNavDialog.UPDATE(ParameterNo,Parameter); 'Close' : ReportForNavDialog.CLOSE(); 'Message' : MESSAGE(Parameter); 'Error' : ERROR(Parameter); END; END; EVENT ReportForNav@5000::OnPrintPreview@5011(InStream : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.Stream"; Preview : Boolean); VAR ClientFileName : Text[255]; BEGIN // This code is created automatically every time Reports ForNAV saves the report. // Do not modify this code. CurrReport.LANGUAGE := SYSTEM.GLOBALLANGUAGE; DOWNLOADFROMSTREAM(InStream, '', '', '', ClientFileName); WHILE ReportForNavClient.PrintPreviewDialog(ClientFileName,ReportForNav.PrinterSettings.PrinterName,Preview) DO BEGIN ReportForNav.HandlePrintPreviewRequest(ReportForNavClient.GetPrintPreviewRequest()); SLEEP(100); END; END; BEGIN END. } RDLDATA { QwMAAH1SXW/aMBR9n7T/YPk5i50sDFpIq/JRDXXQasDYq0kuxKtjR44Tkf36XpLSD6mbLFm+18f3 nHt9RtfHXJEabCmNjmngc0pAJyaV+hDTyu2/DOj11edPo9/Oip9QGOvKH6IxlVuBlULJv2DJ6/HX S6HID/3eqdq7FCVLkUNMZ3nhGtLVo2RitLNGrZsCr6ZQz46FhbL033D6m/mbMPTIP2D1icU7k5KY nIV4ZFIpV1nAnIYKnyiPPFQ7JZM7aNbmEU7otJ+IAQxC3t9HEHGUP5VloUTzkexnzltjl6J+afOr j0P0g+gbNnu/+wOJW5qY9jg/VXtOfFDsVoJKt7DDWdYygY1VMc2cKy4ZUyYRKjOlu+zzaMDGkzDg TBSSdczspigWQosD5KAdq5GeUfKA8XeQh8zFNLzo87PcjZaYWSMyK+/3NwuplMzBgaVkIexB6hLx /MIjg55HQs7brSu3lanL8DZo51JIPPYiSjo7dJ83OyagKPqFkNFY6LQkrAtWrlGwygBcG2Nm7iAP UNQ+ptHZFklnhBYcUDI2NgXbRjGd6xLcSUjaeZN73Wo1jEXyODHK2JhuM+lgleOHUrJyFrE4plxg 00sQdthufLg0GoaTTFiRYO/DKewF2oOe5bJ3ekfsP+6/egI= SQL 2in 6.5in END_OF_RDLDATA } }